<#assign secSelect = JspTaglibs["http://www.casic304.cn/secSelect"] />
<form class="qbdms-add-view-body formPreview layui-form" requrl="${ctx}/qbdms/wQbdQualitymanage/get" lay-filter="wQbdQualitymanageDataForm">
    <div class="qbdms-formTitle">审核不符合项信息</div>
    <div class="qbdms-formBody">
        <div id="tbxx"></div>
        <div class="layui-row">
            <div class="qbdms-oneForm  ">
                <label class="layui-form-label qbdms-label" title="审核单位名称">审核单位名称<span style="color: red;">*</span></label>
                <div class="layui-input-block qbdms-input">
                    <input type="text" placeholder="未填写" autocomplete="off" class="layui-input " lay-verify="required" name="fNameofauditinguni" lay-reqtext="审核单位名称是必填项" maxlength="50" disabled>
                </div>
            </div>
            <div class="qbdms-oneForm  ">
                <label class="layui-form-label qbdms-label" title="密级">密级<span style="color: red;">*</span></label>
                <div class="layui-input-block qbdms-input">
                    <@secSelect.sec_select data_src=1 required=true name="secret" activity=false/>
                </div>
            </div>
            <div class="qbdms-oneForm  ">
                <label class="layui-form-label qbdms-label" title="受审单位名称">受审单位名称<span style="color: red;">*</span></label>
                <div class="layui-input-block qbdms-input">
                    <input type="text" placeholder="未填写" autocomplete="off" class="layui-input textInput" lay-verify="required" lay-reqtext="受审单位名称是必填项" name="fTrialunitname" maxlength="50" readonly disabled>
                </div>
            </div>
            <div class="qbdms-oneForm  ">
                <label class="layui-form-label qbdms-label" title="受审核部门">受审核部门<span style="color: red;">*</span></label>
                <div class="layui-input-block qbdms-input">
                    <input type="text" name="fTrialdeptname" placeholder="未填写" autocomplete="off" class="layui-input " maxlength="50" fieldname="fTrialdeptname" disabled>
                </div>
            </div>
            <div class="qbdms-oneForm  ">
                <label class="layui-form-label qbdms-label" title="审核时间">审核时间<span style="color: red;">*</span></label>
                <div class="layui-input-block qbdms-input">
                    <input type="text" placeholder="未填写" autocomplete="off" class="layui-input dateTimeFiled input-right time-init" name="fAudittime" format="yyyy-MM-dd" datetype="date" lay-verify="required" lay-reqtext="审核时间是必填项" disabled>
                </div>
            </div>
            <div class="qbdms-oneForm  ">
                <label class="layui-form-label qbdms-label" title="审核类型">审核类型<span style="color: red;">*</span></label>
                <div class="layui-input-block qbdms-input">
                    <input type="text" placeholder="未填写" disabled autocomplete="off" class="layui-input textInput" name="fAudittype" readonly maxlength="150">
                </div>
            </div>
            <div class="qbdms-oneForm  ">
                <label class="layui-form-label qbdms-label" title="不合格项性质">不合格项性质<span style="color: red;">*</span></label>
                <div class="layui-input-block qbdms-input">
                    <input type="text" placeholder="未填写" disabled autocomplete="off" class="layui-input textInput" name="fUnqualifiednature" readonly maxlength="150">
                </div>
            </div>
            <div class="qbdms-oneForm  ">
                <label class="layui-form-label qbdms-label" title="依据标准">依据标准<span style="color: red;">*</span></label>
                <div class="layui-input-block qbdms-input">
                    <input type="text" placeholder="未填写" disabled autocomplete="off" class="layui-input textInput" name="fAccordingstandar" readonly maxlength="150">
                </div>
            </div>
            <div class="qbdms-oneForm  ">
                <label class="layui-form-label qbdms-label" title="标准条款">标准条款<span style="color: red;">*</span></label>
                <div class="layui-input-block qbdms-input">
                    <input type="text" placeholder="未填写" disabled autocomplete="off" class="layui-input textInput" name="fStandardclause" readonly maxlength="150">
                </div>
            </div>
            <div class="qbdms-oneForm  ">
                <label class="layui-form-label qbdms-label" title="标准内容">标准内容</label>
                <div class="layui-input-block qbdms-input">
                    <input type="text" placeholder="未填写" disabled autocomplete="off" class="layui-input textInput" name="fStandardcontent" readonly maxlength="150">
                </div>
            </div>
            <div class="qbdms-oneForm  ">
                <label class="layui-form-label qbdms-label" title="子标准条款">子标准条款</label>
                <div class="layui-input-block qbdms-input">
                    <input type="text" placeholder="未填写" disabled autocomplete="off" class="layui-input textInput" name="fSubstandardclauses" readonly maxlength="150">
                </div>
            </div>
            <div class="qbdms-oneForm  ">
                <label class="layui-form-label qbdms-label" title="子标准内容">子标准内容</label>
                <div class="layui-input-block qbdms-input">
                    <input type="text" placeholder="未填写" disabled autocomplete="off" class="layui-input textInput" name="fSubstandardcontent" readonly maxlength="150">
                </div>
            </div>
            <div class="qbdms-textarea  ">
                <label class="layui-form-label qbdms-label">不合格事实描述</label>
                <div class="layui-input-block qbdms-input">
                    <textarea rows="2" class="layui-textarea" placeholder="未填写" name="fDescriptionsubst" maxlength="1000" disabled></textarea>
                </div>
            </div>
            <div class="qbdms-textarea  ">
                <label class="layui-form-label qbdms-label">原因分析</label>
                <div class="layui-input-block qbdms-input">
                    <textarea rows="2" class="layui-textarea" placeholder="未填写" name="fCauseanalysis" maxlength="1000" disabled></textarea>
                </div>
            </div>
            <div class="qbdms-textarea  ">
                <label class="layui-form-label qbdms-label">纠正措施</label>
                <div class="layui-input-block qbdms-input">
                    <textarea rows="2" placeholder="请输入" disabled="disabled" class="layui-textarea textAreaInput" name="fCorrectivemeasures" maxlength="1000"></textarea>
                </div>
            </div>
            <div class="qbdms-textarea  ">
                <label class="layui-form-label qbdms-label">举一反三</label>
                <div class="layui-input-block qbdms-input">
                    <textarea rows="2" class="layui-textarea" placeholder="未填写" name="fCiteoneantithree" maxlength="1000" disabled></textarea>
                </div>
            </div>
        </div>
    </div>
    <div class="layui-hide">
        <input type="text" name="id" placeholder="未填写" autocomplete="off" class="layui-input " maxlength="50" fieldname="id">
        <input type="text" name="fTrialunitnameid" placeholder="请输入受审单位名称ID" autocomplete="off" class="layui-input " maxlength="50" fieldname="fTrialunitnameid">
        <input type="text" name="fTrialdeptnameid" placeholder="请输入受审核部门名称ID" autocomplete="off" class="layui-input " maxlength="50" fieldname="fTrialdeptnameid">
    </div>
</form>

<script>

    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).use(['index', 'layer', 'common', 'laydate', 'jquery', 'publicMethods', 'qbdmsForm'], function () {
        // -----常量声明----------
        var $ = layui.jquery,
            laydate = layui.laydate,
            form = layui.qbdmsForm,
            publicMethods = layui.publicMethods,
            common = layui.common;

        var dateTimeFiledLen = $(".dateTimeFiled");
        for (var i = 0; i < dateTimeFiledLen.length; i++) {
            laydate.render({
                elem: dateTimeFiledLen[i] //指定元素
                , type: 'date'
                , trigger: 'click'
            });
        }

        var flowKey = "${flowKey}";
        if (flowKey != "" && flowKey != null) {
            $("textarea[name='fCorrectivemeasures']").removeAttr("disabled");
        }

        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            parent.layer.close(parent.layer.getFrameIndex(window.name));
        });

        common.updateForm({
            name: 'wQbdQualitymanageDataForm',
            idValue: "${id}",
            primary: "id",
            getCallback: function (data) {
                $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span><span class='qbdms-TBinformationText'>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</span>");
            },
            updateCallback: function (data) {
                if (publicMethods._filterRecord(data)) {
                    if ($(".privateSubmit")) {
                        $(".privateSubmit").attr("disabled", false).css("pointer-events", "auto");
                    }
                    window.parent.layer.alert(publicMethods.confirmStyle(data.msg), {title: false, skin: 'confirm-class'}, function (index) {
                        window.parent.layer.close(index);
                        window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdQualitymanage/view/list';
                    });
                } else {
                    window.parent.layer.alert(publicMethods.confirmStyle(data.msg), {title: false, skin: 'confirm-class'});
                }
                return false;
            }
        });

        publicMethods.bottomFixd()
        form.on('select', function (data) {
            publicMethods.bottomFixd()
        });
        form.render();
    });
</script>